import config from "@/config"
import http from "@/utils/request"

export default {
	getPrice: {
		url: `${config.API_URL}/addons/vip/admin.price/getPrice`,
		name: "获取会员价",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
    setPrice: {
        url: `${config.API_URL}/addons/vip/admin.price/setPrice`,
		name: "设置会员价",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
    },
	getVipList: {
		url: `${config.API_URL}/addons/vip/admin.index/index`,
		name: "获取会员列表",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	addVip: {
		url: `${config.API_URL}/addons/vip/admin.index/add`,
		name: "添加会员卡",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	editVip: {
		url: `${config.API_URL}/addons/vip/admin.index/edit`,
		name: "编辑会员卡",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	},
	delVip: {
		url: `${config.API_URL}/addons/vip/admin.index/del`,
		name: "删除会员卡",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	orderList: {
		url: `${config.API_URL}/addons/vip/admin.order/index`,
		name: "会员记录",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	}
}
